package com.hello.sky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hello.sky.model.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 地址簿 Mapper 接口
 * </p>
 *
 * @author D
 */
@Mapper
public interface AddressBookMapper extends BaseMapper<AddressBook> {

    List<AddressBook> getListByUserId(@Param("currentId") Long currentId);

    void updateIsDefaultByUserId(AddressBook addressBook);

    void updateAddr(AddressBook addressBook);
}
